<template>
  <div v-if="status" class="status_tab">
      {{ getName(status) }}
  </div>
</template>
<script setup>
import { useStore } from "vuex";
import { useI18n } from "vue-i18n";
const { locale, t } = useI18n();
const store = useStore();
const props = defineProps({
  status: {
    type: String,
    default: ''
  },
  type:{
    type:String,
    default:'',
  }
})
const getName = (status)=>{
  let obj = {
    0:t("pending"),
    1:t("hasOut"),
    2: t("going"),
    3:t("hasDone"),
    4:t("hasCancel"),
    5:t("hasClear"),
    6:t("hasPing"),
  }
  if(props.type=='c2c'){
    obj={
      0:t("pending"),
      1:t("hasDone"),
      2:t("hasResove"),
      3:t("hasOut"),
    }
  }
  return obj[Number(status)]
} 
// 改变法币查询
</script>
<style lang="scss" scoped>
.status_tab{
  color: rgb(246, 109, 26);
}
</style>
  